package com.vincent.sciinfo.service;

import com.github.pagehelper.PageInfo;
import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Paper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-paper", configuration = FeignPassToken.class)
public interface PaperService {

    @RequestMapping("/paper/selectCheckAndRemovePaper")
    PageInfo selectCheckAndRemovePaper(@RequestParam Integer pn, @RequestParam Integer pageSize);

    @RequestMapping("/paper/updatePaperStatus")
    void updatePaperStatus(@RequestParam String paperId, @RequestParam int operaCode);

    @RequestMapping("/paper/selectPaperNameById")
    String[] selectPaperNameById(@RequestParam String paperId);
}